#define _CRT_SECURE_NO_WARNINGS 1
#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int add(int n)
{
    int sum = 0;
    while (n > 0)
    {
        sum += n % 10;
        n /= 10;
    }
    return sum;
}
int main()
{
    int a, b, n;
    int cnt = 0;
    scanf("%d %d %d", &a, &b, &n);
    int k = 0;
    for (int i = a; i <= b; i++)
    {
        if (add(i) == n)
        {
            cnt++;
            k = 1;
            printf("%8d", i);
            if (cnt % 6 == 0)
            {
                printf("\n");
            }
        }
    }
    if (k == 0)
    {
        printf("None");
    }
    return 0;
}


#include<stdio.h>
int sup(int n)
{
    if (n < 2)
        return 0;
    if (n == 2)
        return 1;
    for (int i = 2; i < n; i++)
    {
        if (n % i == 0)
            return 0;
    }
    return 1;
}
int main()
{
    int m, n;
    int sum = 0;
    scanf("%d %d", &m, &n);
    for (int i = m; i >= 2; i--)
    {
        if (sum == n)
            break;
        if (sup(i))
        {
            sum++;
            printf("%8d", i);
            if (sum % 5 == 0)
                printf("\n");
        }
    }
    return 0;

}

#include<stdio.h>
int main()
{
    double a, b, c;
    double up;
    scanf("%lf %lf %lf %lf", &a, &b, &c, &up);
    int i = 1;
    int j = 1;
    up += 1;
    for (int p = 1; p <= 1200; p++)
    {
        i = p % 5;
        j = p % 7;
        if (i < 3)
            a *= up;
        if (j < 5)
            b *= up;
        c *= up;

    }
    printf("%.2f\n", a);
    printf("%.2f\n", b);
    printf("%.2f\n", c);

    return 0;
}

#include<stdio.h>
int main()
{
    double m = 0;
    int min = 0;
    scanf("%lf %d", &m, &min);
    int v = (min / 5) * 2;
    double fee = (double)v;
    if (m <= 3)
        fee += 10;
    else if (m <= 13)
    {
        fee += 10;
        fee += (m - 3) * 2;
    }
    else {
        fee += 10;
        fee += 10 * 2;
        fee += (m - 13) * 3;
    }
    int k = (int)fee;
    if (fee - k >= 0.5)
    {
        k += 1;
    }
    printf("%d", k);

    return 0;
}

int luckcode(int n)
{
    int k = n;
    while (k > 0)
    {
        if (k % 10 == 4)
            return 0;
        k /= 10;
    }
    k = n;
    while (k > 0)
    {
        if (k % 10 == 2 && k % 100 == 62)
        {
            return 0;
        }
        k /= 10;
    }
    return 1;
}
